package io.ukoko.bhwms.entity;

import java.util.Date;
import java.util.List;

/**
 * 映射数据库user(用户)表
 */
public class User {
  /*
    用户ID
   */
  private Integer userId;
  /*
    用户名
   */
  private String userName;
  /*
    联系电话
   */
  private String userTel;
  /*
    邮箱
   */
  private String userEmail;
  /*
    用户昵称
   */
  private String userNick;
  /*
    密码
   */
  private String password;
  /*
    盐值
   */
  private String salt;

  /*
    用户头像地址
   */
  private String avatar;

  /*
    部门列表
   */
  private List<Department> departments;
  /*
    角色列表
   */
  private List<Role> roles;
  /*
      创建时间
   */
  private Date createTime;
  /*
      更新时间
   */
  private Date updateTime;
  /*
      是否删除 0:删除 1:未删除
   */
  private int isDelete=1;

  public User() {
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public String getUserTel() {
    return userTel;
  }

  public void setUserTel(String userTel) {
    this.userTel = userTel;
  }

  public String getUserEmail() {
    return userEmail;
  }

  public void setUserEmail(String userEmail) {
    this.userEmail = userEmail;
  }

  public String getUserNick() {
    return userNick;
  }

  public void setUserNick(String userNick) {
    this.userNick = userNick;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getSalt() {
    return salt;
  }

  public void setSalt(String salt) {
    this.salt = salt;
  }

  public int getIsDelete() {
    return isDelete;
  }

  public void setIsDelete(int isDelete) {
    this.isDelete = isDelete;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

  public List<Department> getDepartments() {
    return departments;
  }

  public void setDepartments(List<Department> departments) {
    this.departments = departments;
  }

  public List<Role> getRoles() {
    return roles;
  }

  public void setRoles(List<Role> roles) {
    this.roles = roles;
  }

  public String getAvatar() {
    return avatar;
  }

  public void setAvatar(String avatar) {
    this.avatar = avatar;
  }

  @Override
  public String toString() {
    return "User{" +
            "userId=" + userId +
            ", userName='" + userName + '\'' +
            ", userTel='" + userTel + '\'' +
            ", userEmail='" + userEmail + '\'' +
            ", userNick='" + userNick + '\'' +
            ", password='" + password + '\'' +
            ", salt='" + salt + '\'' +
            ", avatar='" + avatar + '\'' +
            ", departments=" + departments +
            ", roles=" + roles +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", isDelete=" + isDelete +
            '}';
  }
}
